#ifndef __GDI__H__
#define __GDI__H__

#include <loader.h>
#include <apps.h>

#define GDI_INACTIVE	0x0
#define GDI_SYSTEMDC	0x1
#define GDI_PRIVATEDC	0x2

extern UINT8	GDIMode;
extern UINT32	GDITransColor;
extern UINT32	GDIDefPatMode;
extern UINT32	GDIDrawPatMode;

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

UINT32 GDI_Init(AHIDEVCONTEXT_T* dCtx, AHISURFACE_T* sDisp, AHISURFACE_T* sDraw, const char* szIdent, UINT8 dMode, UINT32 dDefPatMode, UINT32 dDrawPatMode);
UINT32 GDI_UnInit(AHIDEVCONTEXT_T* dCtx);

UINT32 GDI_BeginPaint(AHIDEVCONTEXT_T hDC, AHISURFACE_T sDisp, AHISURFACE_T sDraw);
UINT32 GDI_EndPaint(AHIDEVCONTEXT_T hDC, AHISURFACE_T sDisp, AHISURFACE_T sDraw);

UINT32 GDI_FillRect(AHIDEVCONTEXT_T hDC, UINT32 X, UINT32 Y, UINT32 W, UINT32 H, UINT32 brFg);

#ifdef __cplusplus
}
#endif // __cplusplus

#endif // __GDI__H__
